package com.liuyang.concurrency.chapter4;

import java.util.Optional;

public class DeamonThread2 {
    public static void main(String[] args) {
        Thread t = new Thread(() ->{
            Optional.of("Hello").ifPresent(System.out::println);
        },"t1");
        t.start();
    }

}
